// 封装基于ls存取删三个方法

const TOKENKEY = 'token_key'

export const setToken = (token) => {
    return localStorage.setItem(TOKENKEY, token)
}

export const getToken = () => {
    return localStorage.getItem(TOKENKEY)
}

export const clearToken = () => {
    return localStorage.removeItem(TOKENKEY)
}

